﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Call_Center_Gochi.DAL;

namespace Call_Center_Gochi.Reportes
{
    public partial class Informe2 : Form
    {
        Conexion Cn;
        public Informe2()
        {
            InitializeComponent();
            Cn = new Conexion();
            Campos();
            
        }

        public void Campos()
        {
            int cont = 0;
            this.comboBox1.Text = "Seleccione El Campo a Revisar ";
            this.comboBox1.Items.Insert(cont, "Todos Los Campos");
            cont++;
            this.comboBox1.Items.Insert(cont, "Mail");
            cont++;
            this.comboBox1.Items.Insert(cont, "Correo");
            cont++;
            this.comboBox1.Items.Insert(cont, "Visita");
            cont++;
            this.comboBox1.Items.Insert(cont, "Asistencia");
            cont++;
            this.comboBox1.Items.Insert(cont, "Seguimiento");
            cont++;     
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.dataGridView1.DataSource = Cn.DarGestionCampos(this.dateTimePicker1.Text, this.dateTimePicker2.Text, this.comboBox1.SelectedIndex);
            this.dataGridView1.Columns["idCliente"].Visible = false;
            this.dataGridView1.Columns["Tipo_Cliente_idTipo_Cliente"].Visible = false;
            this.dataGridView1.Columns["Estado_idEstado"].Visible = false;
            this.dataGridView1.Columns["Origen_idOrigen"].Visible = false;
            this.dataGridView1.Columns["Operador_idOperador"].Visible = false;
            this.dataGridView1.Columns["idGestion"].Visible = false;
            this.dataGridView1.Columns["cliente_idCliente"].Visible = false;
            this.dataGridView1.Columns["usuario_idUsuario"].Visible = false;
            this.dataGridView1.Columns["estado_idEstado1"].Visible = false;
        }


    }
}
